from django.contrib import admin

from .models import Post

# Register your models here.

class PostAdmin(admin.ModelAdmin):
    list_display = ('title','publish')
    list_filter = ('created', 'publish')
    search_fields = ('title', 'body')
    date_hierarchy = 'publish'
    ordering = ['publish']

admin.site.register(Post, PostAdmin)